<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>

	<a href="###" class="link">点击打开预测</a><br/><br/>
	<a href="###" class="link2">点击切换K线样式</a><br/><br/>
	<a href="###" class="link3">点击 板块还原</a><br/><br/>
	<a href="###" class="link4">点击 弹出画线工具框， 鼠标箭头改变为参数的 画线类型</a><br/><br/>
	<a href="###" class="link5">增加45均线</a><br/><br/>
	<script src="http://s.thsi.cn/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript">

		var thsQuote = external.createObject('Quote');
		var thsUtil = external.createObject('Util');
		// var thsPassport = external.createObject('Passport');
		$('.link').on('click', function () {
			var marketcode = '33',
				code = '300637',
				matchdeg = '0.9',
				matchperiod = '20',
				matchcount = '30';

			thsUtil.shape_prediction(marketcode,code,matchdeg,matchperiod, matchcount);
		});

		$('.link2').on('click', function () {
			// thsUtil.switchPage();33364
			thsUtil.changeKLineStyle(33364);
		});

		$('.link3').on('click', function () {
			thsUtil.BlockRollBack();
		});

		$('.link4').on('click', function () {
			// 参数，画线类型：矩形,30798,52;时空矩形,32537,53;箱体线,32538,54;三角形,32539,55;平行四边形,32540,56;
			thsUtil.getDrawLineTool(32539);
		});

		$('.link5').on('click', function () {
	        var result = thsUtil.addAvgLine(45);
	        alert(result);
	    });


	</script>
</body>
</html>
